//
//  HttpRequestWithToken.h
//  onlineCustoSDK
//
//  Created by Mac on 2017/11/15.
//  Copyright © 2017年 com.netinfosz. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^Result)(NSString* info);
typedef void (^failureResult)(NSError *error);
@interface HttpRequestWithToken : NSObject<NSURLConnectionDataDelegate, NSURLConnectionDelegate>
@property (nonatomic, strong) NSURLConnection *connect;
@property (nonatomic, strong) NSMutableData *mutableData;
@property(nonatomic,strong)NSMutableURLRequest  *request;
@property (nonatomic, copy) Result block;
@property(nonatomic,copy)failureResult  block2;
- (void)post:(NSString*)url params:(NSString*)params token:(NSString*)token finish:(Result)block failure:(failureResult)failureBlock;
@end
